﻿@using WebAppMVCTest01.ViewModels
@model EmployeeListViewModel
@{
	Layout = null;
}

<!DOCTYPE html>

<html>
<head>
	<meta name="viewport" content="width=device-width" />
	<title>Index</title>
</head>
<body>
	Hello
	<hr />
	<div>
		<a href="/Employee/CreateEmployee">Add New</a><br />@* Test01.8.3 添加跳转 URL *@
		<table border="1">
			<caption>Employee Details</caption>
			<tr>
				<th>Employee Name</th>
				<th>Salary</th>
			</tr>
			@foreach (EFEmployeeViewModel item in Model.EFEmployees)
			{
				<tr>
					<td>@item.EmployeeName</td>
					<td style="background-color:@item.SalaryColor">@item.Salary</td>
				</tr>
			}
		</table>
	</div>
</body>
</html>
